package com.fxsh.learn.swagger;

import com.fxsh.learn.shiro.entity.Employee;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("swagger")
@Api(tags = "用户操作")
public class SwaggerController {

    @GetMapping("users")
    @ApiOperation("获取所有用户")
    public List<Employee> users(){
        return null;
    }
}
